import  {xsEntity} from '../commentity';
import { Column ,Entity} from 'typeorm';

/**
 * 描述
 */
@Entity()
export class UserEntity extends xsEntity {
    @Column({ comment: '用户名',default:null })
    username: string;
  
    @Column({ comment: '书币',default:null })
    bookCurrency: number;
  
    @Column({ comment: '密码',default:null })
    password: string;
    @Column({ comment: '性别',default:null })
    gender: number;
    @Column({ comment: '登录时间' ,default:null})
    lastLoginTime: Date;
    @Column({ comment: '登录ip',default:null })
    lastLoginIp: string;
    
    @Column({ comment: '等级' ,default:0})
    userLevel: number;
    @Column({ comment: '昵称',default:null })
    nickname: string;
    @Column({ comment: '手机号码' ,default:null})
    mobile: string;
    @Column({ comment: '头像',default:null })
    avatar: string;

    @Column({ comment: '微信Id' ,default:null})
    appOpenid: string;
  
    @Column({ comment: 'signature' ,default:null})
    signature: string;
  
    @Column({ comment: '所属平台' ,default:"0"})
    platform: string;
  
    @Column({ comment: '是否删除' ,default:false})
    deleted: boolean;
}
